<?php
namespace app\index\model;
use think\Model;

class Room extends Model
{
    public function getOne ($where) {
        $res = $this->where($where)->find();
        if($res) {
            return $res->toArray();
        }
        return false;
    }
    
    public function getList ($where) {
        $res = $this->where($where)->select();
        if($res) {
            return $res->toArray();
        }
        return false;
    }
    
    public function getCount ($where) {
        return $this->where($where)->count();
    }
    
    public function getRoomList ($where) {
        $list = $this->where($where)->select();
        if($list) {
            return $list->toArray();
        }
        return false;
    }
}
